package cloud.xiangyixiang.www.spring.boot.java.basics.pojo.bo;

/**
 * <p>
 * 教师内部类
 * </p>
 *
 * @author weixin
 * @date 2023/9/13 17:38
 */
public class TeacherInnerClass implements Cloneable{

    /**
     * 教师ID
     */
    private Integer id;

    /**
     * 教师名称
     */
    private String name;

    /**
     * 知行录
     */
    private final String ZHI_XING_LU = "知行录";

    public void study(){
        System.out.println("我是知行录");
    }

    public void speak(){
        Student student = new Student();
        student.speak();
    }

    public void speak2(){
        Student2 student2 = new Student2();
        student2.speak();
    }

    public class Student {

        private Integer teacherId;

        private String teacherName;

        private void speak(){
            System.out.println("我是 " + ZHI_XING_LU + " 成员内部类");
        }
    }

    class Student2 {
        private Integer teacherId;

        private String teacherName;

        private static final String const_NEZHA = "比比东";

        private void speak(){
            System.out.println("我是 " + TeacherInnerClass.this.ZHI_XING_LU + " 成员内部类");
        }
    }

    public class Student3 {
        private Integer teacherId;

        private String teacherName;

        private static final String const_NEZHA = "比比东";

        public void speak(){
            System.out.println("我是 " + TeacherInnerClass.this.ZHI_XING_LU + " 成员内部类");
        }
    }

}
